package com.silent.handle;

import java.util.Comparator;

import com.woke.data.Datas_freinds;


/**
 * 
 * @author Mr.Z
 */
public class PinyinComparator1 implements Comparator<Datas_freinds> {

	public int compare(Datas_freinds o1, Datas_freinds o2) {
		if(o1.shouzimu.equals("@") || o2.shouzimu.equals("#")) {
			return -1;
		} else if(o1.shouzimu.equals("#") || o2.shouzimu.equals("@")) {
			return 1;
		} else {
			return o1.shouzimu.compareTo(o2.shouzimu);
		}
	}

}